package nl.hr.minor.mobilelife.j1213.jlr.flow;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;

public class HostBlock extends Block {

	public boolean isStartHost;
	public Paint hostPaint;
	
	public HostBlock() {
		super();
		init();
	}
	
	public HostBlock(Block original) {
		super(original.row, original.column);
		this.set(original);
		init();
	}

	public HostBlock(float left, float top, float right, float bottom) {
		super(left, top, right, bottom);
		init();
	}

	public HostBlock(int row, int column, float left, float top, float right, float bottom) {
		super(row, column, left, top, right, bottom);
		init();
	}

	public HostBlock(int row, int column) {
		super(row, column);
		init();
	}

	public HostBlock(Rect r) {
		super(r);
		init();
	}

	public HostBlock(RectF r) {
		super(r);
		init();
	}
	
	private void init(){
		this.isStartHost = false;
		hostPaint = new Paint();
		hostPaint.setStyle(Paint.Style.FILL);
	}
	
	public void setColor(int color) {
		hostPaint.setColor(color);
	}
	
	public void draw(Canvas canvas) {
		super.draw(canvas);
		canvas.drawCircle(this.centerX(), this.centerY(), (float) (this.width() * 0.3), hostPaint);
	}
}
